<include file="Public/header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <div class="nav">
        <ul class="cc">
            <li <if condition=" !isset($_GET['status']) || $_GET['status']==1 && empty($itemtype) ">class="current"</if>><a href="{:U('Toppic/suipai',array('doAction'=>'index'))}">通过列表</a></li>
            <li <if condition=" isset($_GET['status']) && $_GET['status']==0 ">class="current"</if>><a href="{:U('Toppic/suipai', array('search'=>1 ,'status'=>0,'doAction'=>'index'))}">待审核</a></li>
            <li <if condition=" $_GET['status']==2 ">class="current"</if>><a href="{:U('Toppic/suipai', array('search'=>1 ,'status'=>2,'doAction'=>'index'))}">未通过审核</a></li>
        </ul>
    </div>
    <div class="h_a">搜索</div>
    <form method="post" action="{:U('Toppic/suipai', array('doAction'=>'index'))}">
        <input type="hidden" value="1" name="search">
        <div class="search_type cc mb10">
            <div class="mb10">
        <span class="mr20">时间：
        <input type="text" name="start_time" class="input length_2 J_date" value="{$Think.get.start_time}" style="width:80px;">-<input type="text" class="input length_2 J_date" name="end_time" value="{$Think.get.end_time}" style="width:80px;">
        <select class="select_2" name="ifwin" style="width:70px;">
            <option value='3' <if condition=" $ifwin == 3 "> selected</if>>全部</option>
            <option value="1" <if condition=" $ifwin == 1 "> selected</if>>获奖</option>
            <option value="0" <if condition=" $ifwin == 0 "> selected</if>>未获奖</option>
        </select>
        关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$_GET.keyword}" placeholder="请输入作品关键字...">
        <button class="btn">搜索</button>
        </span>
            </div>
        </div>
    </form>
    <form class="J_ajaxForm" action="" method="post">
        <div class="table_user">
            <table width="100%">
                <colgroup>
                    <col width="50">
                    <col width="80">
                    <col width="80">
                    <col width="150">
                    <col width="">
                    <col width="180">
                </colgroup>
                <thead>
                <tr>
                    <td><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
                    <td>审核</td>
                    <td>获奖</td>
                    <td>用户名称</td>
                    <td>作品名称</td>
                    <td>时间</td>
                </tr>
                </thead>
                <volist name="data" id="vo">
                    <tr>
                        <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.id}"></td>
                        <td>{$vo.status|showPass}</td>
                        <td>{$vo.ifwin|showStatus}</td>
                        <td>{$vo.userid|getNickName}</td>
                        <td>{$vo.title}</td>
                        <td>{$vo.create_time|date="Y-m-d H:i",###}</td>
                    </tr>
                </volist>
            </table>
            <div class="p10"><div class="pages"> {$Page} </div> </div>

        </div>
        <div class="btn_wrap">
            <div class="btn_wrap_pd">
                <label class="mr20 sel-all"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Suipai/batch/',array('do'=>'checkpass'))}">审核</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Suipai/batch/',array('do'=>'cancelpass'))}">取消审核</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Suipai/batch/',array('do'=>'nopass'))}">不通过审核</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Toppic/suipai/',array('do'=>'win','doAction'=>'suipaibatch'))}">获奖</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Toppic/suipai/',array('do'=>'nowin','doAction'=>'suipaibatch'))}">不获奖</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Suipai/batch_delete')}">删除</button>
            </div>
        </div>
    </form>
</div>
<script src="__JS__/common.js"></script>
</body>
</html>